Configure FTP Server - Pure-FTPd
2014/08/16 |
Install Pure-FTPd to configure FTP Server.
|
|
[1] | Install Pure-FTPd. |
[root@www ~]#
vi /etc/pure-ftpd/pure-ftpd.conf # line 77: change (no Anonymous) NoAnonymous yes
# line 143: uncomment UnixAuthentication yes # line 437: uncomment (if only IPv4) IPV4Only yes # line 443: uncomment (if only IPv6) IPV6Only yes /etc/rc.d/init.d/pure-ftpd start Starting proftpd: [ OK ] [root@www ~]# chkconfig pure-ftpd on
|
[2] | If IPTables is running, allow FTP port and fixed PASV ports. For "-I INPUT 5" section below, Replace it to your own environment. |
[root@www ~]#
vi /etc/pure-ftpd/pure-ftpd.conf # # line 180: uncomment and fix PASV ports PassivePortRange 21000 21010
/etc/rc.d/init.d/pure-ftpd restart [root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT [root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21000:21010 -j ACCEPT |
[3] | If SELinux is enabled, change bollean setting. |
[root@www ~]# setsebool -P allow_ftpd_full_access on
|